package friot.service.cloud.service;

import com.baomidou.mybatisplus.extension.service.IService;
import friot.model.iot.dtos.IotDeviceDto;
import friot.model.iot.vo.IotDeviceVo;
import friot.model.iot.entity.IotDevice;

import java.util.List;

/**
 * (IotDevice)表服务接口
 *
 * @author makejava
 * @since 2024-03-13 23:04:36
 */
public interface IotDeviceService extends IService<IotDevice> {

    /**
     * 添加设备
     * @param deviceDto 设备DTO
     */

    void addDevice(IotDeviceDto deviceDto);

    /**
     * 查询当前用户ID下的设备
     *
     * @param userId 用户ID
     * @return 设备列表VO
     */
    List<IotDeviceVo> listAndMapByUserId(Integer userId);

}

